# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Maintainer: Charles Mauch <cmauch@gmail.com>

pkgname=perl-data-hierarchy
pkgver=0.34
pkgrel=13
pkgdesc="Perl/CPAN Module Data::Hierarchy"
arch=("any")
url="https://search.cpan.org/dist/Data-Hierarchy"
license=("GPL" "PerlArtistic")
makedepends=("perl-test-exception")
depends=("perl-test-exception")
source=("https://www.cpan.org/authors/id/C/CL/CLKAO/Data-Hierarchy-$pkgver.tar.gz")
sha256sums=('b3a8e62b53e29f71dd5989aeef99fbfaf1f4b6e272a06800381360d59e9fd9ed')

build() {
  cd "$srcdir"/Data-Hierarchy-$pkgver
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
  make
}

package() {
  cd "$srcdir"/Data-Hierarchy-$pkgver
  make install DESTDIR="$pkgdir"
  find "$pkgdir" -name '.packlist' -delete
  find "$pkgdir" -name '*.pod' -delete
}
